﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects.Production
{
    public class TransferDetail : BusinessObject
    {
        public TransferDetail()
        {
            AddRule(new ValidateRequired("RefDetailID"));

            AddRule(new ValidateRequired("RefID"));

            AddRule(new ValidateRequired("InventoryItemID"));

            AddRule(new ValidateRequired("RestaurantMenuID"));

            AddRule(new ValidateRequired("FromStockID"));

            AddRule(new ValidateRequired("ToStockID"));
        }

        public TransferDetail(string refDetailId, string refId, string inventoryItemId, string restaurantMenuId, string description,
                                string fromStockId, string toStockId, string unitId, decimal quantity, decimal unitPrice, decimal amount)
        {
            RefDetailID = refDetailId;
            RefID = refId;
            InventoryItemID = inventoryItemId;
            RestaurantMenuID = restaurantMenuId;
            Description = description;
            FromStockID = fromStockId;
            ToStockID = toStockId;
            UnitID = unitId;
            Quantity = quantity;
            UnitPrice = unitPrice;
            Amount = amount;
        }

        public string RefDetailID { get; set; }

        public string RefID { get; set; }

        public string InventoryItemID { get; set; }

        public string RestaurantMenuID { get; set; }

        public string Description { get; set; }

        public string FromStockID { get; set; }

        public string ToStockID { get; set; }

        public string UnitID { get; set; }

        public decimal Quantity { get; set; }

        public decimal UnitPrice { get; set; }

        public decimal Amount { get; set; }
    }
}